package nero.yncc.com.createart.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by nero on 17-7-3.
 */

public class BeanGoodChangjing {

    boolean isChoose;
    int num=0;
    Goods goods;
    String spec_goods_price;
    ArrayList<String> gallery;


    public int getNum() {

        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public boolean isChoose() {
        return isChoose;
    }

    public void setChoose(boolean choose) {
        isChoose = choose;
    }

    public static class GoodsAttr {

        String goods_attr_id, goods_id, attr_id, attr_value, attr_price, attr_name;

        public String getGoods_attr_id() {
            return goods_attr_id;
        }

        public void setGoods_attr_id(String goods_attr_id) {
            this.goods_attr_id = goods_attr_id;
        }

        public String getGoods_id() {
            return goods_id;
        }

        public void setGoods_id(String goods_id) {
            this.goods_id = goods_id;
        }

        public String getAttr_id() {
            return attr_id;
        }

        public void setAttr_id(String attr_id) {
            this.attr_id = attr_id;
        }

        public String getAttr_value() {
            return attr_value;
        }

        public void setAttr_value(String attr_value) {
            this.attr_value = attr_value;
        }

        public String getAttr_price() {
            return attr_price;
        }

        public void setAttr_price(String attr_price) {
            this.attr_price = attr_price;
        }

        public String getAttr_name() {
            return attr_name;
        }

        public void setAttr_name(String attr_name) {
            this.attr_name = attr_name;
        }
    }


    public static class GoodsSpecIn {
        //         "spec_name":"颜色",
//                        "item_id":153,
//                        "spec_id":35,
//                        "item":"红色",
//                        "src":""
        String spec_name, item_id, spec_id, item, src;
        boolean isChoose;

        public boolean isChoose() {
            return isChoose;
        }

        public void setChoose(boolean choose) {
            isChoose = choose;
        }

        public String getSpec_name() {
            return spec_name;
        }

        public void setSpec_name(String spec_name) {
            this.spec_name = spec_name;
        }

        public String getItem_id() {
            return item_id;
        }

        public void setItem_id(String item_id) {
            this.item_id = item_id;
        }

        public String getSpec_id() {
            return spec_id;
        }

        public void setSpec_id(String spec_id) {
            this.spec_id = spec_id;
        }

        public String getItem() {
            return item;
        }

        public void setItem(String item) {
            this.item = item;
        }

        public String getSrc() {
            return src;
        }

        public void setSrc(String src) {
            this.src = src;
        }
    }

    public  class Goods {
        String goods_id, original_img, goods_name, shop_price, market_price, goods_content,store_count;
        List<GoodsAttr> goods_attr_list;
        ArrayList<GodBean.SpecAttr> goods_spec_list;

        public ArrayList<GodBean.SpecAttr> getGoods_spec_list() {
            return goods_spec_list;
        }

        public void setGoods_spec_list(ArrayList<GodBean.SpecAttr> goods_spec_list) {
            this.goods_spec_list = goods_spec_list;
        }

        public String getStore_count() {
            return store_count;
        }

        public void setStore_count(String store_count) {
            this.store_count = store_count;
        }

        public String getGoods_id() {
            return goods_id;
        }

        public void setGoods_id(String goods_id) {
            this.goods_id = goods_id;
        }

        public String getOriginal_img() {
            return original_img;
        }

        public void setOriginal_img(String original_img) {
            this.original_img = original_img;
        }

        public String getGoods_name() {
            return goods_name;
        }

        public void setGoods_name(String goods_name) {
            this.goods_name = goods_name;
        }

        public String getShop_price() {
            return shop_price;
        }

        public void setShop_price(String shop_price) {
            this.shop_price = shop_price;
        }

        public String getMarket_price() {
            return market_price;
        }

        public void setMarket_price(String market_price) {
            this.market_price = market_price;
        }

        public String getGoods_content() {
            return goods_content;
        }

        public void setGoods_content(String goods_content) {
            this.goods_content = goods_content;
        }

        public List<GoodsAttr> getGoods_attr_list() {
            return goods_attr_list;
        }

        public void setGoods_attr_list(List<GoodsAttr> goods_attr_list) {
            this.goods_attr_list = goods_attr_list;
        }


    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public String getSpec_goods_price() {
        return spec_goods_price;
    }

    public void setSpec_goods_price(String spec_goods_price) {
        this.spec_goods_price = spec_goods_price;
    }

    public ArrayList<String> getGallery() {
        return gallery;
    }

    public void setGallery(ArrayList<String> gallery) {
        this.gallery = gallery;
    }

    //            "result":[
//        {
//            "goods":{
//            "goods_id":129,
//                    "original_img":
//            "http://lmrz.ynthgy.com/Public/upload/goods/2016/04-21/57187dd92a26f.jpg",
//                    "goods_name":"【蚂蚁摄影】Canon/佳能 PowerShot SX410 IS 媲单反长焦数码相机",
//                    "shop_price":"1098.00",
//                    "market_price":"1198.00",
//                    "goods_attr_list":[
//
//            {
//                "goods_attr_id":938,
//                    "goods_id":129,
//                    "attr_id":328,
//                    "attr_value":"2000万",
//                    "attr_price":"0",
//                    "attr_name":"像素"
//            }
//                ],
//            "goods_spec_list":[
//            {
//                "name":"颜色",
//                    "spec_id":35,
//                    "list":[
//                {
//                    "spec_name":"颜色",
//                        "item_id":153,
//                        "spec_id":35,
//                        "item":"红色",
//                        "src":""
//                },
//
//                        ]
//            }
//                ],
//            "goods_content":""
//        },
//            "spec_goods_price":{
//            "152":{
//                "key":"152",
//                        "price":"100.00",
//                        "store_count":10
//            },
//        },
//            "gallery":[
//            {
//                "image_url":
//                "http://lmrz.ynthgy.com/Public/upload/goods/2016/04-21/57187dbb16571.jpg"
//            },
//            ]
//        }
//    ]

}
